<%@ page language="java" pageEncoding="UTF-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ page isELIgnored="false" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="pragma" content="no-cache"/>
    <meta http-equiv="cache-control" content="no-cache"/>
    <meta http-equiv="expires" content="0"/>
    <meta http-equiv="keywords" content="keyword1,keyword2,keyword3"/>
    <meta http-equiv="description" content="This is my page"/>


    <link href="${pageContext.request.contextPath}/static/css/front.css" rel="stylesheet" type="text/css"
          media="screen"/>
    <link href="${pageContext.request.contextPath}/static/css/daoke.css" rel="stylesheet" type="text/css"
          media="screen"/>

    <script language="JavaScript" type="text/javascript">

        function c() {
            if (document.formAdd.departmentId.value == "") {
                alert("请选择所在科室");
                return false;
            }

            document.formAdd.submit();
        }

        var i = 0;


        il.addOptions("hospitalId", data, "id", "name");
        }
    </script>

</head>

<jsp:include flush="true" page="/front/inc/top.jsp"></jsp:include>
<body style="background: -webkit-linear-gradient(#A5DBFE,#FFFFFF)">
<div class="w1440 bg-f" style="margin: 0 auto;min-height: 700px;">
    <div id="page-bgtop">
        <div id="page-bgbtm">
            <div id="content">
                <div class="post">
                    <div class="entry">
                        <form action="${pageContext.request.contextPath}/expert/searchExpert.html" name="formAdd"
                              method="post">
                            <fieldset style="width:95%; margin-center:5px;">
                                <legend class="fieldtitle" style="font-size: 28px;">医生信息</legend>
                                <table align="center" border="0" cellpadding="2" cellspacing="2">
                                    <tr align='center' >
                                        <td style="width: 60px;font-size: 18px;" align="center">
                                            医院：
                                        </td>
                                        <td align="center">
                                            <select name="hospitalId" id="hospitalId" style="width: 235px;font-size: 16px;" class="select">
                                                <c:forEach items="${hospitalList}" var="hospital">
                                                    <option value="${hospital.id}">${hospital.name}</option>
                                                </c:forEach>
                                            </select>
                                        </td>
                                    </tr>
                                    <tr align='center'>
                                        <td style="width: 60px;font-size: 18px;" align="center">
                                            科室：<img id="indicator"
                                                    src="../../static/img/loading.gif"
                                                    style="display:none"/>
                                        </td>
                                        <td align="center">
                                            <select name="departmentId" id="departmentId"
                                                    style="width: 235px;font-size: 18px;" class="select">
                                                <c:forEach items="${departmentList}" var="department">
                                                    <option value="${department.id}">${department.name}</option>
                                                </c:forEach>
                                            </select>
                                        </td>
                                    </tr>
                                    <tr align='center'>
                                        <td style="width: 60px;font-size: 18px;" align="center">
                                            类型：
                                        </td>
                                        <td align="center">
                                            <select name="type" id="type" style="width: 235px;font-size: 18px;" class="select">
                                                <option value="专家门诊">专家门诊</option>
                                                <option value="普通门诊">普通门诊</option>
                                            </select>
                                        </td>
                                    </tr>
                                    <tr align='center'>
                                        <td style="width: 60px;font-size: 18px;" align="center">
                                            姓名：
                                        </td>
                                        <td align="center">
                                            <input type="text" name="name" style="width: 235px;"/>
                                        </td>
                                    </tr>
                                    <tr align='center'>
                                        <td style="width: 60px;" align="center"></td>
                                        <td align="center">
                                            <input type="submit" value="查询" style="border:#ccc 1px solid; background-color:#6699cc; font-size:12px; padding-top:3px;width: 60px;margin-top: 30px;" class="btn"/>&nbsp;
                                            <input type="reset" value="重置" style="border:#ccc 1px solid; background-color:#6699cc; font-size:12px; padding-top:3px;width: 60px;" class="btn"/>&nbsp;
                                        </td>
                                    </tr>
                                </table>
                            </fieldset>
                        </form>
                    </div>
                </div>
                <div style="clear: both;">&nbsp;</div>
            </div>
            <jsp:include flush="true" page="/front/inc/right.jsp"></jsp:include>
            <div style="clear: both;">&nbsp;</div>
        </div>
    </div>
</div>


<div style="margin: 0 auto;height: 140px;background: #545454;color:#bbbbbb;margin-top: 20px;text-align: center;" class="w1440 font14 text-c">
    <div class="ht30 l-ht30" style="font-size: 18px;line-height: 80px;">Copyright (c) 2019 Sitename.com. All rights reserved.</div>
    <div class="ht30 l-ht30" style="font-size: 18px;line-height: 80px;"><a
            href="${pageContext.request.contextPath}/login.jsp" style="color: #ffffff">管理员或医生登陆</a></div>

</div>
</body>
</html>
